package com.gdupt.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gdupt.entity.CustomerLoss;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 客户流失 客户流失 Mapper 接口
 * </p>
 *
 * @author gdupt
 * @since 2018-11-21
 */
public interface CustomerLossMapper extends BaseMapper<CustomerLoss> {

    List<CustomerLoss> lossPage(IPage page, @Param("search") String search);

    List<CustomerLoss> lossList(IPage page, @Param("name") String name, @Param("mgr") String mgr);

    List<CustomerLoss> lossAll(IPage page, @Param("name") String name, @Param("mgr") String mgr, @Param("status") Integer status);

    boolean addRecord();
}
